package cn.sdstudio.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import cn.sdstudio.vo.FavoriteVO;
import cn.sdstudio.vo.RelicSiteVO;
import cn.sdstudio.entity.Collect;
import cn.sdstudio.entity.RelicSite;
import java.util.List;
@Transactional(propagation = Propagation.REQUIRES_NEW)
public interface RelicSiteService extends IService<RelicSite> {
    Page<RelicSiteVO> getRemainsUserPageVo(Page<RelicSiteVO> iPage);
    Page<RelicSite> getRemainsPageVo(Page<RelicSite> iPage);
    int addCollect(Collect collect);
    List<FavoriteVO> getMyCollect(int userid);
    int deleteFavorite(int id,int userid);

    List<RelicSite> selectList(String content);
    List<RelicSite> searchByTitle(String content);

}